package com.example.qxfw.common.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.ny.CropGrowdateHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/5  星期三   17:17
* @description : 此类用来
***************************************/
@Mapper
public interface CropGrowdateHistoryMapperXml extends BaseMapper<CropGrowdateHistory> {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CropGrowdateHistory record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CropGrowdateHistory record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CropGrowdateHistory record);

    List<CropGrowdateHistory> querySelect(@Param("cropGrowdateHistory") CropGrowdateHistory cropGrowdateHistory, @Param("order") String order, @Param("limit") Integer limit);

    List<CropGrowdateHistory> queryRealSituationQueryOfCropDevelopmentPeriod(@Param("stationId") String stationId, @Param("year") Integer year, @Param("cropName") String cropName, @Param("type") String type);


}